import Layout from "@/layout/Index.vue";

export default {
  component: Layout,
  path: "/battle",
  name: "battle",
  children: [
    {
      path: "/battle",
      name: "Battle-child",
      component: () => import("@/views/battle/Index.vue"),
      meta: {
        module: "battle",
      },
    },
    {
      path: "/battle/battleWaiting",
      name: "battleWaiting",
      component: () => import("@/views/battle/Waiting.vue"),
      meta: {
        module: "battleWaiting",
      },
    },
    {
      path: "/battle/createBattle",
      name: "CreateBattle",
      component: () => import("@/views/battle/Create.vue"),
      meta: {
        module: "create-battle",
      },
    },
    {
      path: "/battle/executeBattle",
      name: "ExecuteBattle",
      component: () => import("@/views/battle/Execute.vue"),
      meta: {
        module: "execute-battle",
      },
    },
    {
      path: "/battle/history",
      name: "BattleHistory",
      component: () => import("@/views/battle/History.vue"),
      meta: {
        module: "battle-history",
      },
    },
    {
      path: "/top/history",
      name: "TopHistory",
      component: () => import("@/views/top/History.vue"),
      meta: {
        module: "top-history",
      },
    },
    {
      path: "/csgo/history",
      name: "csgoHistory",
      component: () => import("@/views/csgo/History.vue"),
      meta: {
        module: "csgo-history",
      },
    },
    {
      path: "/battle/:id",
      name: "BattleDetail",
      component: () => import("@/views/battle/Detail.vue"),
      meta: {
        module: "battle-detail",
      },
    },
  ],
};
